<div class="example-wrapper">
    <div style="margin-bottom: 5px;">
        <button style="font-size: 12px" onclick="setEditableYear(2008)">Enable Editing for 2008</button>
        <button style="font-size: 12px" onclick="setEditableYear(2012)">Enable Editing for 2012</button>
    </div>
    <div id="myGrid" class="ag-theme-quartz"></div>
</div>